.class public final Lnbisdk/ck;
.super Lnbisdk/ia;


# instance fields
.field private bM:Ljava/util/Timer;

.field private bS:Lcom/nbi/location/LocationListener;

.field private bT:Lcom/nbi/location/LocationListener;

.field private dN:Z


# direct methods
.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V
    .locals 2

    invoke-direct {p0, p1, p2}, Lnbisdk/ia;-><init>(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/ck;->dN:Z

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/ck;->bM:Ljava/util/Timer;

    new-instance v0, Lnbisdk/ez;

    invoke-direct {v0, p0}, Lnbisdk/ez;-><init>(Lnbisdk/ck;)V

    iput-object v0, p0, Lnbisdk/ck;->bS:Lcom/nbi/location/LocationListener;

    new-instance v0, Lnbisdk/ey;

    invoke-direct {v0, p0}, Lnbisdk/ey;-><init>(Lnbisdk/ck;)V

    iput-object v0, p0, Lnbisdk/ck;->bT:Lcom/nbi/location/LocationListener;

    invoke-virtual {p0}, Lnbisdk/ck;->jp()I

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lnbisdk/ck;->sv:J

    return-void
.end method

.method private aU()Z
    .locals 3

    const/4 v2, 0x0

    :try_start_0
    iget-object v0, p0, Lnbisdk/ck;->ca:Lcom/nbi/common/NBIContext;

    iget-object v1, p0, Lnbisdk/ck;->bS:Lcom/nbi/location/LocationListener;

    invoke-static {v0, v1}, Lnbisdk/bd;->a(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)Lnbisdk/gn;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/ck;->sn:Lnbisdk/gn;

    iget-object v0, p0, Lnbisdk/ck;->ca:Lcom/nbi/common/NBIContext;

    iget-object v1, p0, Lnbisdk/ck;->bT:Lcom/nbi/location/LocationListener;

    invoke-static {v0, v1}, Lnbisdk/bd;->b(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)Lnbisdk/or;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/ck;->so:Lnbisdk/or;

    iget-object v0, p0, Lnbisdk/ck;->so:Lnbisdk/or;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ck;->sn:Lnbisdk/gn;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-nez v0, :cond_1

    :cond_0
    move v0, v2

    :goto_0
    return v0

    :catch_0
    move-exception v0

    move v0, v2

    goto :goto_0

    :cond_1
    const/4 v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method public final aS()Z
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    invoke-virtual {p0}, Lnbisdk/ck;->jm()I

    move-result v0

    int-to-long v0, v0

    invoke-virtual {p0, v0, v1}, Lnbisdk/ck;->i(J)Z

    move-result v0

    if-ne v0, v4, :cond_1

    move v0, v4

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-direct {p0}, Lnbisdk/ck;->aU()Z

    move-result v0

    if-ne v0, v4, :cond_0

    invoke-virtual {p0}, Lnbisdk/ck;->jt()V

    iget-object v0, p0, Lnbisdk/ck;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v0}, Lnbisdk/bd;->c(Lcom/nbi/common/NBIContext;)Lnbisdk/og;

    move-result-object v0

    if-eqz v0, :cond_7

    invoke-interface {v0}, Lnbisdk/og;->getWifiState()I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_2

    invoke-interface {v0}, Lnbisdk/og;->cu()Z

    :cond_2
    iget-object v0, p0, Lnbisdk/ck;->so:Lnbisdk/or;

    invoke-interface {v0}, Lnbisdk/or;->bl()Z

    move-result v0

    :goto_1
    iget-object v1, p0, Lnbisdk/ck;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v1}, Lnbisdk/bd;->d(Lcom/nbi/common/NBIContext;)Lnbisdk/cj;

    move-result-object v1

    if-eqz v1, :cond_6

    iget-object v1, p0, Lnbisdk/ck;->sn:Lnbisdk/gn;

    if-eqz v1, :cond_4

    iget-object v1, p0, Lnbisdk/ck;->sn:Lnbisdk/gn;

    invoke-interface {v1}, Lnbisdk/gn;->bl()Z

    move-result v1

    :goto_2
    if-nez v1, :cond_5

    if-nez v0, :cond_5

    iget-object v0, p0, Lnbisdk/ck;->el:Lcom/nbi/location/LocationListener;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/ck;->el:Lcom/nbi/location/LocationListener;

    const/16 v1, 0x2346

    invoke-interface {v0, v1}, Lcom/nbi/location/LocationListener;->onLocationError(I)V

    :cond_3
    move v0, v3

    goto :goto_0

    :cond_4
    move v1, v3

    goto :goto_2

    :cond_5
    move v0, v4

    goto :goto_0

    :cond_6
    move v1, v3

    goto :goto_2

    :cond_7
    move v0, v3

    goto :goto_1
.end method

.method public final cancel()Z
    .locals 1

    invoke-super {p0}, Lnbisdk/ia;->cancel()Z

    move-result v0

    return v0
.end method
